/*我的页面  下部*/
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:frametrim/app/app_navigator.dart';
import 'package:frametrim/appviews/systemView.dart';
import 'package:frametrim/netconnect/apiUrls.dart';
import 'package:frametrim/utility/screen.dart';
import 'package:frametrim/utility/sq_color.dart';

class MineBottomView extends StatefulWidget {
  @override
  State<StatefulWidget> createState() =>MineBottomState();
}

class MineBottomState extends State<MineBottomView> {
  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.fromLTRB(10, 0, 10, 10),
      padding: EdgeInsets.only(left: 10, right: 10),
      decoration: BoxDecoration(
          borderRadius: BorderRadius.circular(5), color: SQColor.white),
      child: Column(
        children: <Widget>[
          GestureDetector(
            /**
             * 点击事件区域处理
             * deferToChild：只有当前容器中的child被点击时才会响应点击事件；
             * opaque：点击整个区域都会响应点击事件，但是点击事件不可穿透向下传递；
             * translucent：同样是点击整个区域都会响应点击事件，和opaque的区别是点击事件是否可以向下传递；
             */
            behavior: HitTestBehavior.opaque,
            onTap: () {
              AppNavigator.pushWeb(context, ApiUrs.h5EditPsd);
            },
            child: SystemView('修改密码'),
          ),
          Divider(
            height: 0.5,
            color: SQColor.color_DFDFDF,
          ),
          GestureDetector(
            behavior: HitTestBehavior.opaque,
            onTap: () {
              AppNavigator.pushToSystem(context);
            },
            child: SystemView('系统设置'),
          ),
          Divider(
            height: 0.5,
            color: SQColor.color_DFDFDF,
          ),
          GestureDetector(
            behavior: HitTestBehavior.opaque,
            onTap: () {
              AppNavigator.pushWeb1(context, ApiUrs.h5CommonProblem, '常见问题');
            },
            child: SystemView('常见问题'),
          ),
          Divider(
            height: 0.5,
            color: SQColor.color_DFDFDF,
          ),
        ],
      ),
    );
  }



}
